package edu.sctu.zhangwang.month201505.day20150525.test01;

/**
 * Created by Administrator on 2015/5/25 0025.
 */
public class PeopleOne extends People {
    public String especial;
    public PeopleOne(String name, String number, int age, String sex) {
        super(name, number, age, sex);
    }
    public void setEspecial(String especial){
        this.especial = especial;
    }
    public String getEspecial(){
        return especial;
    }
    public void getPeopleInfo(){
        System.out.println("\t\t******基本信息******");
        System.out.print("姓名：" + name);
        System.out.print("\t学号：" + number);
        System.out.print("\t年龄：" + age);
        System.out.println("\t性别：" + sex);
        System.out.println("\n该生特长："+getEspecial());
    }
}
